package handler

import (
	"app-box/config"

	"github.com/gin-gonic/gin"
)

type OpenAPIHandler struct {
}

func (h OpenAPIHandler) InitRoute(router gin.IRouter) {
	router.GET("env", H(h.getSystemEnv))
	app := router.Group("app")
	{
		app.GET("info", H(h.getAppInfo))
	}
}

func (h OpenAPIHandler) getAppInfo(ctx Context) {

}

func (h OpenAPIHandler) getSystemEnv(ctx Context) {
	ctx.Response(map[string]interface{}{
		"FileUploadType": config.Server.FileUploadType,
	})
}
